home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 157 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.5 KB  |  35 lines

  1. Newsgroups: comp.std.c
  2. Path: blackbush.xlink.net!slsv6bt!slsv6bt!kanze
  3. From: kanze@lts.sel.alcatel.de (James Kanze US/ESC 60/3/141 #40763)
  4. Subject: Re: brief summary of Technical Corrigendum 2
  5. In-Reply-To: A.Main@dcs.warwick.ac.uk's message of Sun, 21 Jan 1996 22:05:41 GMT
  6. Message-ID: <KANZE.96Jan22153648@slsvewt.lts.sel.alcatel.de>
  7. Sender: news@lts.sel.alcatel.de
  8. Organization: SEL
  9. References: <4d554m$q4b@news1.halcyon.com> <4dfgdt$se6@der.twinsun.com>
  10.     <1996Jan16.174120.3636@sq.com> <4dnq5b$t9a@der.twinsun.com>
  11.     <1996Jan21.220541.28634@dcs.warwick.ac.uk>
  12. Date: 22 Jan 1996 14:36:47 GMT
  13.  
  14. In article <1996Jan21.220541.28634@dcs.warwick.ac.uk>
  15. A.Main@dcs.warwick.ac.uk (Zefram) writes:
  16.  
  17. |> Paul Eggert <eggert@twinsun.com> wrote:
  18. |> >My favorite bit of trivia along these lines is that it is possible
  19. |> >for two non-identical string literals to have the same address!
  20. |> >The null character is the key.
  21.  
  22. |> Do you mean cases like "abc\0xyz" and "abc", which could compare as equal?
  23.  
  24. For a suitable definition of compare equal, of course.  They might be
  25. at the same address in memory, of course.  And strcmp will state that
  26. they are equal.
  27.  
  28. What definition of compare equal did you have in mind?
  29. --
  30. James Kanze         Tel.: (+33) 88 14 49 00        email: kanze@gabi-soft.fr
  31. GABI Software, Sarl., 8 rue des Francs-Bourgeois, F-67000 Strasbourg, France
  32. Conseils, Θtudes et rΘalisations en logiciel orientΘ objet --
  33.                 -- A la recherche d'une activitΘ dans une region francophone
  34.  
  35.